
all: gregory machin ramanujan

gregory:gregory.cpp utils.o Real.o
machin:machin.cpp utils.o Real.o
ramanujan:ramanujan.cpp utils.o Real.o

bin: gregory machin ramanujan
	@-mkdir ../bin
	mv $^ ../bin/

%:%.cpp
	g++ -O2 -o $@ $< utils.o Real.o

%.o:%.cpp %.hpp
	g++ -O2 -c $<

clean:
	rm -f gregory machin ramanujan Real.o utils.o
